package com.sky.vo;

import com.sky.pojo.Dish;
import com.sky.pojo.DishFlavor;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class DishVO extends Dish implements Serializable {

   private Long id;
    //菜品名称
   private String name;
   //菜品分类id
   private Long categoryId;
    //菜品价格
    private BigDecimal price;
    //图片
   private String image;
    //描述信息
    private String description;
    //0 停售 1 起售
  private Integer status;
    //更新时间
   private LocalDateTime updateTime;
    //分类名称
    private String categoryName;
    //菜品关联的口味
    private List<DishFlavor> flavors = new ArrayList<>();

    private Integer copies;
}
